package root.electronclass.electronclass.mvp.entity;

import java.util.HashMap;
import java.util.List;

public class HomeNoticeInfoH implements IHomeNoticeInfoH{

    private String id;

    private String noticeId;

    private String noticeName;

    public List<HashMap<String, String>> imgUrlFormat;

    private String remarks;

    private String imgUrl;

    private int status;

    private String startTime;

    private int degree;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getDegree() {
        return degree;
    }

    public void setDegree(int degree) {
        this.degree = degree;
    }

    public List<HashMap<String, String>> getImgUrlFormat() {
        return imgUrlFormat;
    }

    public void setImgUrlFormat(List<HashMap<String, String>> imgUrlFormat) {
        this.imgUrlFormat = imgUrlFormat;
    }

    public void setNoticeId(String noticeId) {
        this.noticeId = noticeId;
    }

    public String getNoticeId() {
        return noticeId;
    }

    public void setNoticeName(String noticeName) {
        this.noticeName = noticeName;
    }

    public String getNoticeName() {
        return noticeName;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRemarks() {
        return remarks;
    }


    @Override
    public int getLevelH() {
        return getDegree();
    }

    @Override
    public int getStatusH() {
        return getStatus();
    }

    @Override
    public String getNoticeUrl() {
        if (getImgUrlFormat() != null && getImgUrlFormat().size() > 0) {
            return getImgUrlFormat().get(0).get("url");
        }
        return null;
    }

    @Override
    public String getTitleH() {
        return getNoticeName();
    }

    @Override
    public String getDateH() {
        return getStartTime();
    }

    @Override
    public String getIdH() {
        return getId();
    }

    @Override
    public String getNoticeIdH() {
        return getNoticeId();
    }

    @Override
    public void setStatusH(int status) {
        setStatus(status);
    }
}
